<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      #container {
        width: 100%;
        height: 200px;
        line-height: 200px;
        text-align: center;
        color: #fff;
        background-color: #444;
        font-size: 30px;
      }
    </style>
  </head>
  <body>
    <h1>Learn 2020</h1>
    <div id="container"></div>
    <script src="./35-promise.js"></script>
    <script>
      // console.log(bar.myCall(foo, 'yangtao', 28))
      // console.log(bar.myapply(foo))
      // const myFn = bar.mybind1(foo);
      // const myFn = bar.mybind2(foo, 'yangtao');
      // bar.prototype.value='new bar value'
      // const myFn = bar.mybind(foo, 'yangtao');
      // const fn = new myFn(28);
      // myFn(28)
      // const obj = {
      //   age: 28,
      //   name: "yangtao",
      //   getName: function() {
      //     console.log(this.name);
      //   }
      // };
      // let myobj = {};
      // myobj.__proto__ = obj;
      // console.log(myobj.age);
      // myobj.getName();
      // let myobj2 = Object.mycreate(obj);
      // myobj2.age = 18;
      // console.log(myobj2.age);
      // myobj2.getName();
    </script>
  </body>
</html>
